package org.eden.karb.persistence.dao;

import java.io.Serializable;

/**
 * @author trsimoes
 */
public interface AbstractDAO<T> {

    <T, PK extends Serializable> T findById(final Class<T> entity, PK id);

    void persist(T entity);

    T merge(T entity);

    void delete(T entity);
}
